<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrl_cameras.ascx.cs" Inherits="Controls_Main_ctrl_cameras" %>

<asp:PlaceHolder runat="server" ID="plcCams">	
	<asp:Label runat="server" CssClass="editBoxTitle" ID="lt" Text="<% $Resources:Title %>" />
	<br />
	<br />
	
	<%--<asp:Label runat="server" ID="lblText" CssClass="txtNormal" Text="<% $Resources:Text %>" />
	<br />
	<br />--%>
	
	<div class="camList">
		<asp:GridView runat="server" Width="100%" CssClass="gvDefault" ID="gvCams" 
			AutoGenerateColumns="False" GridLines="none">
			<RowStyle CssClass="gvFirstRow" />
			<AlternatingRowStyle CssClass="gvSecondRow" />
			<Columns>
				<asp:BoundField DataField="Maker" HeaderText="<% $Resources:Maker %>" >
					<ItemStyle Width="220px" />
					<HeaderStyle CssClass="gvDefaultHeader" />
				</asp:BoundField>
				
				<asp:TemplateField HeaderStyle-CssClass="gvDefaultHeader" HeaderText="<% $Resources:Model %>">
					<ItemTemplate>
						<asp:HyperLink runat="server" 
							ID="linkShowImage" 
							CssClass="rowLink" 
							NavigateUrl='<%# "~/search.aspx?cam=" + DataBinder.Eval(Container.DataItem, "Model").ToString() %>' 
							Text='<%# DataBinder.Eval(Container.DataItem, "Model").ToString() %>'>
						</asp:HyperLink>
					</ItemTemplate>
				</asp:TemplateField>
				
				<asp:BoundField DataField="Amount" HeaderText="<% $Resources:Amount %>" >
					<ItemStyle Width="75px" HorizontalAlign="Right" />
					<HeaderStyle CssClass="gvDefaultHeader" />
				</asp:BoundField>
			</Columns>
		</asp:GridView>
	</div>
</asp:PlaceHolder>
